using System;
using ScrumManagementTool.db;
using ScrumManagementTool.db.interfaces;
using ScrumManagementTool.login.interfaces;

namespace ScrumManagementTool.login
{
    public class Login :ILogin
    {
        private IDbLogin dbLogin;

        public Login():this(new DbLogin())
        {
            
        }

        public Login(IDbLogin dbLogin)
        {
            this.dbLogin = dbLogin;    
        }

        public bool AttemptLogin(string username, string password)
        {
            return dbLogin.AttemptLogin(username, password);
        }
    }
}